package Terminal.UI;

import java.awt.BorderLayout;
import java.awt.Insets;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JPanel;

import Terminal.Controller.CSession;
import Terminal.Entity.EConsulenteI;
import Terminal.Entity.EDipendenteI;
import Terminal.Entity.EManagerI;
import Terminal.TechnicalServices.Foundation.FdbClientFacadeI;

import Terminal.UI.InterfacceConsulente.ConsulenteInterfacciaFactory;
import Terminal.UI.InterfacceConsulente.ConsulenteInterfacciaGestore;

import Terminal.UI.InterfacciaFactory;

public class TimeLoggingSpecifico {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		CSession session = CSession.instanza();
		
		
	/*	FdbFacade fondation = new FdbFacade();
		session.setLoggato((EDipendenteI) fondation.load(EManagerI.class, 2));
		ManagerInterfacciaFactory pif= ManagerInterfacciaFactory.instanza();
		ManagerInterfacciaGestore gip = pif.createGestoreInterfaccia();//*/
	/*	ProprietarioInterfacciaFactory pif= ProprietarioInterfacciaFactory.instanza();
		ProprietarioInterfacciaGestore gip = pif.createGestoreInterfaccia();//*/
		FdbClientFacadeI fondation = new FdbClientFacadeI();
		session.setLoggato((EDipendenteI) fondation.load(new EConsulenteI(), 5));
		

		ConsulenteInterfacciaFactory pif= ConsulenteInterfacciaFactory.instanza();
		ConsulenteInterfacciaGestore gip = pif.createGestoreInterfaccia();//*/
		
		session.setInterfacciaFactory(pif);
		session.setInterfacciaGestore(gip);
		
	
		TimeLoggingFrame t = TimeLoggingFrame.instanza();

	}

}
